//
//  WebsiteViewController.h
//  BaoVn
//
//  Created by Le Anh Tai on 11/17/14.
//  Copyright (c) 2014 Le Anh Tai. All rights reserved.
//

#import "BaseViewController.h"
#import "ToolbarWebsiteView.h"
#import "UnlimitedHorizontalScrollView.h"
#import "OneNewsItemView.h"
#import "VLDContextSheet.h"
#import "GuideSwipeView.h"

@protocol WebsiteViewControllerDelegate;
@class NewsViewController;
@interface WebsiteViewController : BaseViewController<UIWebViewDelegate, VLDContextSheetDelegate, UIGestureRecognizerDelegate>
{
    OneNewsItemView *_newsItemView;
    GuideSwipeView *_guideView;
    NSString *_rootUrl;
    BOOL _finishFirstLoad;
    
    VLDContextSheet *_contextSheet;
    UIView *_adsView;
    
    BOOL _isScrollViewDidEndDecelarating;
}

@property (nonatomic, strong) NSString *url;
@property (nonatomic, strong) NSString *currentUrl;
@property (nonatomic, weak) id<WebsiteViewControllerDelegate> delegate;

- (void)loadUrl:(NSString *)url;

- (void)detachAdView;
- (void)attachAdView:(UIView *)adsView;

@end

@protocol WebsiteViewControllerDelegate <NSObject>

- (void)websiteRequireShowMenu:(WebsiteViewController *)controller;

@end